const express = require('express')
const app = express()
const cors = require('cors')
app.use(cors())
const router = require('./apiRouter')
app.use('/api', router)
app.use(express.json())
app.use(express.urlencoded({ extended: false }))
app.listen(80, () => {
    console.log('express server running at http://127.0.0.1');
})